import CryptoJS from 'crypto-js';

/**
 * RSA加密
 * @param {string} data
 * @returns {string}
 */
export const encode = (data) => {
  const secretKey = 'N5bDHnKn48IL66XqiFrqLxix7pajayud4sS7'
	const encrypted = CryptoJS.AES.encrypt(data, secretKey).toString();
  return encrypted
}
